package com.lucy.disk.validator;

import com.lucy.common.validator.IsSexValidator;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @author kindear
 * 注解 validator
 */
@Target({ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
@Constraint(validatedBy = DirCheckValidator.class)
public @interface DirCheck {
    String message() default "请检查目录是否存在或是否拥有目录权限";

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};
}
